package cn.arikeky.fallback;

import cn.arikeky.domain.MoveUser;
import cn.arikeky.exception.GlobalExceptionEnum;
import cn.arikeky.feign.MoveService;
import cn.arikeky.feign.MoveUserService;
import cn.arikeky.result.JsonResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class MoveUserServiceFallbackFactory implements FallbackFactory<MoveUserService> {

    @Override
    public MoveUserService create(Throwable throwable) {
        return new MoveUserService() {

            @Override
            public JsonResult watch(Long userId, Long movieId) {
                return null;
            }

            @Override
            public JsonResult saveOrUpdate(MoveUser moveUser) {
                return null;
            }
        };
    }
}